package com.example.model.entity.system;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.model.entity.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;
@Data
@ApiModel(value = "系统菜单实体类")
@TableName("sys_menu")
public class SysMenu extends BaseEntity {

	@TableField("parent_id")
	@ApiModelProperty(value = "父节点id")
	private Long parentId;

	@TableField("title")
	@ApiModelProperty(value = "节点标题")
	private String title;

	@TableField("component")
	@ApiModelProperty(value = "组件名称")
	private String component;

	@TableField("sort_value")
	@ApiModelProperty(value = "排序值")
	private Integer sortValue;

	@TableField("status")
	@ApiModelProperty(value = "状态(0:禁止,1:正常)")
	private Integer status;

	@TableField(exist = false)
	@ApiModelProperty(value = "子节点")
	private List<SysMenu> children;

}